package cn.wolfcode.productserver.data;

import cn.wolfcode.productapi.domain.Product;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

public class ProductData {
    private static Map<Long, Product> data = new HashMap<>();

    static {
        data.put(1L, new Product(1L, "华为", new BigDecimal("5500"), 1));
        data.put(2L, new Product(1L, "魅族", new BigDecimal("4500"), 1));
        data.put(3L, new Product(1L, "appon", new BigDecimal("8500"), 1));
        data.put(4L, new Product(1L, "蓝绿", new BigDecimal("3500"), 1));

    }

    public static Product get(Long id) {
        return data.get(id);
    }
}
